{% if objects %}
{% load thumbnail %}
{% load brispon_filter %}

{% for e in objects %}
<li>
  <div id="dRibon">+{{ e.edate|timeuntil|shortendate }}</div>
  <span class="cTitle"><h2><a href="{{ e.url }}" target="_blank">{{ e.name }}</a></h2></span>
  <div id="dSmBoxIn">
    <span id="dStore"><a href="{{ e.store.url }}" target="_blank">{{ e.store.name }}</a></span>
    <span id="dDate">행사 마감일: {{ e.edate|date:"D d M" }}</span>
    <!-- start Image caption slide -->
    <div class="mosaic-backdrop">
      {% thumbnail e.thumbnail "270x200" as im %}
      <img src="{{ im.url }}" />
      {% endthumbnail %}
    </div>
    <div class="mosaic-block bar">
      <a href="{{ e.url }}" target="_blank" class="mosaic-overlay">
        <div class="details">
        {{ e.short_description|safe }}
        </div>
      </a>
      <div class="mosaic-backdrop">
        {% thumbnail e.thumbnail "270x200" as im %}
        <img src="{{ im.url }}" />
        {% endthumbnail %}
      </div>
    </div> <!-- End Image caption slide -->
  </div> <!-- end "dSmBoxIn"-->
  <div class="cDowncoupon">
    {% if not e.get_coupon_status %}
    <a href="#">쿠폰이 없는 이벤트입니다.</a>
    {% else %}
    {% ifequal e.get_coupon_status "PAST" %}
    <a href="#">기간이 끝났습니다.</a>
    {% else %}
    <a href="{{ e.url }}" target="_blank">모바일 쿠폰받기<span class="cLeftcoupon"><span class="cLeftNumber">{{ e.get_coupon_status }}</span></span></a>
    {% endifequal %}
    {% endif %}
  </div> <!-- end "cDowncoupon"-->
</li>
{% endfor %}

{% endif %}
